using System;
using System.Collections.Generic;
using System.Text;
using BCB.Model;
using BCB.DALFactory;
using BCB.IDAL;

namespace BCB.BLL
{
    public class Products
    {
        private static IProduct BllProducts = BCB.DALFactory.DataAccess.CreateProduct();
        public static int GetProductNumsByCategoryId(int categoryId)
        {
            return BllProducts.GetProductCountByCategoryId(categoryId);
        }
        public static List<ProductDetail> GetProductsByCategoryAndPageNum(int categoryId, int pageNum, int pageSize)
        {
            return BllProducts.GetPrdsByCateId(categoryId, pageNum, pageSize);
        }
    }
}
